package com.horsen.service.user.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.horsen.service.base.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author Horsen
 * @since 2021-05-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("user_order")
@ApiModel("订单")
public class Order extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单号")
    private String orderNo;

    @ApiModelProperty("课程ID")
    private String courseId;

    @ApiModelProperty("课程名称")
    private String courseTitle;

    @ApiModelProperty("课程封面")
    private String courseCover;

    @ApiModelProperty("讲师ID")
    private String teacherId;

    @ApiModelProperty("讲师名称")
    private String teacherName;

    @ApiModelProperty("会员ID")
    private String memberId;

    @ApiModelProperty("会员名称")
    private String name;

    @ApiModelProperty("会员手机")
    private String phone;

    @ApiModelProperty("订单金额")
    private BigDecimal totalFee;

    @ApiModelProperty("是否支付(1已支付,0未支付)")
    @TableField("is_paid")
    private Boolean paid;

    @ApiModelProperty("逻辑删除(1已删除,0未删除)")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;


}
